package com.globallogic.vkulyk.SSHTool;

import static org.junit.Assert.*;

import org.junit.*;

public class Unit_FileCopyDataKeeper extends SSHToolTester {
	private static final String PASSWORD_NOT_EQUALS = "Password not equals";
	private static final String USER_NOT_EQUALS = "User not equals";
	private static final String ACTION_TYPE_NOT_EQUALS = "Action type not equals";
	private static final String DESTINATION_DIRECTORY_NAME_NOT_EQUALS = "Destination directory name not equals";
	private static final String SOURCE_FILE_NAME_NOT_EQUALS = "Source file name not equals";
	private String type = "put";
	private FileCopyDataKeeper copyData = null;

	@Before
	public void setup() {
		setVarsFromPropertiesFile("testData/testing.properties");
		copyData = new FileCopyDataKeeper(type, user, password, srcFileForPut,
				dstDirForPut);
	}

	@Test
	public void shouldReturnCorrectSrcFile_whenCallGetSrcFile() {
		assertEquals(SOURCE_FILE_NAME_NOT_EQUALS, srcFileForPut,
				copyData.getSrcFile());
	}

	@Test
	public void shouldReturnCorrectDstDir_whenCallGetDstDir() {
		assertEquals(DESTINATION_DIRECTORY_NAME_NOT_EQUALS, dstDirForPut,
				copyData.getDstDir());
	}

	@Test
	public void shouldReturnCorrectType_whenCallGetType() {
		assertEquals(ACTION_TYPE_NOT_EQUALS, type, copyData.getType());
	}

	@Test
	public void shouldReturnCorrectUser_whenCallGetUser() {
		assertEquals(USER_NOT_EQUALS, user, copyData.getUser());
	}

	@Test
	public void shouldReturnCorrectPassword_whenCallGetPassword() {
		assertEquals(PASSWORD_NOT_EQUALS, password, copyData.getPassword());
	}

}
